﻿
@inherits LayoutComponentBase
@inject IMasaStackConfig MasaStackConfig

<SLayout OnErrorAsync="OnError"
         TeamRouteFormat="team"
         Logo="https://cdn.masastack.com/stack/images/logo/MASAStack/logo-h-en.png"
         MiniLogo="https://cdn.masastack.com/stack/images/logo/MASAStack/logo.png">
    @Body
</SLayout>

@code {
    [Inject]
    public IPopupService PopupService { get; set; } = default!;

    async Task OnError(Exception exception)
    {
        await PopupService.EnqueueSnackbarAsync(exception.Message, AlertTypes.Error);
    }
}